package com.sgcc.nfc.lock.domain.usecase

import com.sgcc.nfc.lock.core.network.NetworkResult
import com.sgcc.nfc.lock.domain.repository.WarningRepository
import javax.inject.Inject

class HandleWarningUseCase @Inject constructor(
    private val repository: WarningRepository
) {
    suspend operator fun invoke(warningId: Long, remark: String?): NetworkResult<Unit> =
        repository.handleWarning(warningId, remark)
}
